<%--
  Created by IntelliJ IDEA.
  User: 123
  Date: 2020/11/16
  Time: 20:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="2px">
    <thead>
    <th>jar包的名字</th>
    <th>new的名字</th>
    <th>uploadTime</th>
    <th>描述</th>
    </thead>
    <tbody id="c">
    </tbody>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.11.1.js"></script>
<script type="text/javascript">
    $.ajax({
        url:"${pageContext.request.contextPath}/shows.do",
        type:"post",
        dataType:"json",
        success:function (date) {
            for (var a=0;a<date.length;a++){
                $("#c").append("<tr><td>"+date[a].oldname+"</td>" +
                    "<td>"+date[a].newname+"</td>" +
                    "<td>"+date[a].uploadtime+"</td>" +
                    "<td>"+date[a].descript+"</td></tr>"
                    )
            }
        }
    })
</script>
</body>
</html>
